mvn -f pom.xml clean package install -Dmaven.test.skip=true

cd web-client/cms-web
version=$(date +%Y%m%d%H%M)
pwd
docker build -f Dockerfile-pre -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-cms-pre:pre_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-cms-pre:pre_$version
pwd
cd ../enterprise-web
pwd
docker build -f Dockerfile-pre -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-enterprise-pre:pre_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-enterprise-pre:pre_$version
pwd
cd ../mini-web
pwd
docker build -f Dockerfile-pre -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp-pre:pre_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp-pre:pre_$version
pwd